package com.zecan.blog.common;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName BlogResult
 * @Description
 * @date 2022/10/28 18:14
 * @Version 1.0
 * 返回前端的结果信息封装类
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
// 排除为null的字段序列化
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BlogResult<T> {
    Integer code;
    String msg;
    Object data;
}
